package com.ecoolex.union.pay.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class UnionPayCouponCallRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public UnionPayCouponCallRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public UnionPayCouponCallRecordExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public UnionPayCouponCallRecordExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        UnionPayCouponCallRecordExample example = new UnionPayCouponCallRecordExample();
        return example.createCriteria();
    }

    public UnionPayCouponCallRecordExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public UnionPayCouponCallRecordExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public UnionPayCouponCallRecordExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public UnionPayCouponCallRecordExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public UnionPayCouponCallRecordExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("unionpaycouponcallrecord.Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("unionpaycouponcallrecord.Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("unionpaycouponcallrecord.Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Id = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("unionpaycouponcallrecord.Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Id <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("unionpaycouponcallrecord.Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Id > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("unionpaycouponcallrecord.Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Id >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("unionpaycouponcallrecord.Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Id < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("unionpaycouponcallrecord.Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Id <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("unionpaycouponcallrecord.Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("unionpaycouponcallrecord.Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("unionpaycouponcallrecord.Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("unionpaycouponcallrecord.Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCouponCodeIsNull() {
            addCriterion("unionpaycouponcallrecord.CouponCode is null");
            return (Criteria) this;
        }

        public Criteria andCouponCodeIsNotNull() {
            addCriterion("unionpaycouponcallrecord.CouponCode is not null");
            return (Criteria) this;
        }

        public Criteria andCouponCodeEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.CouponCode =", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CouponCode = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponCodeNotEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.CouponCode <>", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CouponCode <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponCodeGreaterThan(String value) {
            addCriterion("unionpaycouponcallrecord.CouponCode >", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CouponCode > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponCodeGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.CouponCode >=", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CouponCode >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponCodeLessThan(String value) {
            addCriterion("unionpaycouponcallrecord.CouponCode <", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CouponCode < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponCodeLessThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.CouponCode <=", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CouponCode <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponCodeLike(String value) {
            addCriterion("unionpaycouponcallrecord.CouponCode like", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeNotLike(String value) {
            addCriterion("unionpaycouponcallrecord.CouponCode not like", value, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.CouponCode in", values, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeNotIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.CouponCode not in", values, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.CouponCode between", value1, value2, "couponCode");
            return (Criteria) this;
        }

        public Criteria andCouponCodeNotBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.CouponCode not between", value1, value2, "couponCode");
            return (Criteria) this;
        }

        public Criteria andOperationTypeIsNull() {
            addCriterion("unionpaycouponcallrecord.OperationType is null");
            return (Criteria) this;
        }

        public Criteria andOperationTypeIsNotNull() {
            addCriterion("unionpaycouponcallrecord.OperationType is not null");
            return (Criteria) this;
        }

        public Criteria andOperationTypeEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.OperationType =", value, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OperationType = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOperationTypeNotEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.OperationType <>", value, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OperationType <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOperationTypeGreaterThan(String value) {
            addCriterion("unionpaycouponcallrecord.OperationType >", value, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OperationType > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOperationTypeGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.OperationType >=", value, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OperationType >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOperationTypeLessThan(String value) {
            addCriterion("unionpaycouponcallrecord.OperationType <", value, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OperationType < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOperationTypeLessThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.OperationType <=", value, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OperationType <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOperationTypeLike(String value) {
            addCriterion("unionpaycouponcallrecord.OperationType like", value, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeNotLike(String value) {
            addCriterion("unionpaycouponcallrecord.OperationType not like", value, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.OperationType in", values, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeNotIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.OperationType not in", values, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.OperationType between", value1, value2, "operationType");
            return (Criteria) this;
        }

        public Criteria andOperationTypeNotBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.OperationType not between", value1, value2, "operationType");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNull() {
            addCriterion("unionpaycouponcallrecord.OrderNo is null");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNotNull() {
            addCriterion("unionpaycouponcallrecord.OrderNo is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.OrderNo =", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OrderNo = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.OrderNo <>", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OrderNo <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThan(String value) {
            addCriterion("unionpaycouponcallrecord.OrderNo >", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OrderNo > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.OrderNo >=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OrderNo >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThan(String value) {
            addCriterion("unionpaycouponcallrecord.OrderNo <", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OrderNo < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.OrderNo <=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.OrderNo <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderNoLike(String value) {
            addCriterion("unionpaycouponcallrecord.OrderNo like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotLike(String value) {
            addCriterion("unionpaycouponcallrecord.OrderNo not like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.OrderNo in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.OrderNo not in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.OrderNo between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.OrderNo not between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("unionpaycouponcallrecord.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("unionpaycouponcallrecord.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("unionpaycouponcallrecord.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("unionpaycouponcallrecord.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("unionpaycouponcallrecord.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("unionpaycouponcallrecord.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("unionpaycouponcallrecord.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("unionpaycouponcallrecord.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("unionpaycouponcallrecord.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("unionpaycouponcallrecord.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("unionpaycouponcallrecord.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("unionpaycouponcallrecord.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("unionpaycouponcallrecord.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("unionpaycouponcallrecord.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("unionpaycouponcallrecord.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("unionpaycouponcallrecord.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("unionpaycouponcallrecord.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("unionpaycouponcallrecord.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("unionpaycouponcallrecord.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("unionpaycouponcallrecord.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("unionpaycouponcallrecord.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("unionpaycouponcallrecord.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("unionpaycouponcallrecord.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("unionpaycouponcallrecord.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("unionpaycouponcallrecord.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("unionpaycouponcallrecord.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("unionpaycouponcallrecord.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("unionpaycouponcallrecord.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("unionpaycouponcallrecord.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("unionpaycouponcallrecord.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("unionpaycouponcallrecord.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("unionpaycouponcallrecord.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("unionpaycouponcallrecord.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("unionpaycouponcallrecord.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("unionpaycouponcallrecord.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("unionpaycouponcallrecord.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("unionpaycouponcallrecord.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("unionpaycouponcallrecord.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("unionpaycouponcallrecord.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("unionpaycouponcallrecord.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("unionpaycouponcallrecord.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("unionpaycouponcallrecord.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("unionpaycouponcallrecord.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("unionpaycouponcallrecord.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("unionpaycouponcallrecord.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("unionpaycouponcallrecord.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("unionpaycouponcallrecord.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andIsSuccessIsNull() {
            addCriterion("unionpaycouponcallrecord.isSuccess is null");
            return (Criteria) this;
        }

        public Criteria andIsSuccessIsNotNull() {
            addCriterion("unionpaycouponcallrecord.isSuccess is not null");
            return (Criteria) this;
        }

        public Criteria andIsSuccessEqualTo(Boolean value) {
            addCriterion("unionpaycouponcallrecord.isSuccess =", value, "isSuccess");
            return (Criteria) this;
        }

        public Criteria andIsSuccessEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.isSuccess = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsSuccessNotEqualTo(Boolean value) {
            addCriterion("unionpaycouponcallrecord.isSuccess <>", value, "isSuccess");
            return (Criteria) this;
        }

        public Criteria andIsSuccessNotEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.isSuccess <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsSuccessGreaterThan(Boolean value) {
            addCriterion("unionpaycouponcallrecord.isSuccess >", value, "isSuccess");
            return (Criteria) this;
        }

        public Criteria andIsSuccessGreaterThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.isSuccess > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsSuccessGreaterThanOrEqualTo(Boolean value) {
            addCriterion("unionpaycouponcallrecord.isSuccess >=", value, "isSuccess");
            return (Criteria) this;
        }

        public Criteria andIsSuccessGreaterThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.isSuccess >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsSuccessLessThan(Boolean value) {
            addCriterion("unionpaycouponcallrecord.isSuccess <", value, "isSuccess");
            return (Criteria) this;
        }

        public Criteria andIsSuccessLessThanColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.isSuccess < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsSuccessLessThanOrEqualTo(Boolean value) {
            addCriterion("unionpaycouponcallrecord.isSuccess <=", value, "isSuccess");
            return (Criteria) this;
        }

        public Criteria andIsSuccessLessThanOrEqualToColumn(UnionPayCouponCallRecordWithBLOBs.Column column) {
            addCriterion(new StringBuilder("unionpaycouponcallrecord.isSuccess <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIsSuccessIn(List<Boolean> values) {
            addCriterion("unionpaycouponcallrecord.isSuccess in", values, "isSuccess");
            return (Criteria) this;
        }

        public Criteria andIsSuccessNotIn(List<Boolean> values) {
            addCriterion("unionpaycouponcallrecord.isSuccess not in", values, "isSuccess");
            return (Criteria) this;
        }

        public Criteria andIsSuccessBetween(Boolean value1, Boolean value2) {
            addCriterion("unionpaycouponcallrecord.isSuccess between", value1, value2, "isSuccess");
            return (Criteria) this;
        }

        public Criteria andIsSuccessNotBetween(Boolean value1, Boolean value2) {
            addCriterion("unionpaycouponcallrecord.isSuccess not between", value1, value2, "isSuccess");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private UnionPayCouponCallRecordExample example;

        protected Criteria(UnionPayCouponCallRecordExample example) {
            super();
            this.example = example;
        }

        public UnionPayCouponCallRecordExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(UnionPayCouponCallRecord.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(UnionPayCouponCallRecord.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.union.pay.retailer.entity.UnionPayCouponCallRecordExample example);
    }
}